package com.kingbook.core.scripting.nodes;


import com.google.common.collect.Lists;
import org.jdom2.Element;

import java.util.List;
import java.util.Map;

/**
 * @Author: Bucky
 * @Date: 2019/1/2
 * @Version 1.0
 */
public class SegmentNode implements Node {

    private List<Node> nodeList = Lists.newArrayList();

    public SegmentNode(Element element) {
        resolve(nodeList, element);
    }

    @Override
    public String getSql(Map<String, ?> paramMap, Map<String, SegmentNode> segMap) {
        return getSql(nodeList, paramMap, segMap);
    }
}
